<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //函数是可以互相调用的。
        function skill(){
            console.log("控制敌人");
        }
        function kill(){
            skill();
            console.log("击杀敌人");
        }
        skill();
        kill();
    </script>
</head>
<body>
    
</body>
</html>